package Animals;

import Animals.Cat;
import Animals.Dog;

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "小黑";
        dog.age = 2;
        System.out.println(dog.name);
        System.out.println(dog.age);

        dog.eat();
        dog.sleep();
        dog.bark();

        System.out.println("==============");

        Cat cat = new Cat();
        cat.name = "花花";
        cat.age = 2;
        System.out.println(cat.name);
        System.out.println(cat.age);

        cat.eat();
        cat.sleep();
        cat.mew();

    }

}
